<!DOCTYPE html>
<html lang="zh">
    <head>
        <meta charset="utf-8" />
        <title>HTML Preview(markdown to html) - Editor.md examples</title>
        <link rel="stylesheet" href="js/md-master/examples/css/style.css" />
        <link rel="stylesheet" href="js/md-master/css/editormd.preview.css" />
        <style>            
            .editormd-html-preview {
                width: 90%;
                margin: 0 auto;
            }
        </style>
    </head>
    <body>
        <div id="layout">
            <div id="test-editormd-view2">
                <textarea id="append-test" style="display:none;"></textarea>          
            </div>
        </div>
        <!-- <script src="js/zepto.min.js"></script>
		<script>		
			var jQuery = Zepto;  // 为了避免修改flowChart.js和sequence-diagram.js的源码，所以使用Zepto.js时想支持flowChart/sequenceDiagram就得加上这一句
		</script> -->
        <script src="js/md-master/examples/js/jquery.min.js"></script>
        <script src="js/md-master/lib/marked.min.js"></script>
        <script src="js/md-master/lib/prettify.min.js"></script>
        
        <script src="js/md-master/lib/raphael.min.js"></script>
        <script src="js/md-master/lib/underscore.min.js"></script>
        <script src="js/md-master/lib/sequence-diagram.min.js"></script>
        <script src="js/md-master/lib/flowchart.min.js"></script>
        <script src="js/md-master/lib/jquery.flowchart.min.js"></script>

        <script src="js/md-master/editormd.js"></script>
        <script type="text/javascript">
            $(function() {
			
				show();
                var testEditormdView2;
                testEditormdView2 = editormd.markdownToHTML("test-editormd-view2", {
                    htmlDecode      : "style,script,iframe",  // you can filter tags decode
                    emoji           : true,
                    taskList        : true,
                    tex             : true,  // 默认不解析
                    flowChart       : true,  // 默认不解析
                    sequenceDiagram : true,  // 默认不解析
                });
            });
			function show(){
				$("#append-test").val(parent.noteContent);
			}
        </script>
    </body>
</html>